import request from '../utils/request';
// import { useTokenStore } from '../stores/token';
// 通知查询

export const getNoticeService = () => {
    return request.get('/notice')
}

export const getByIdService = (id) => {
    return request.get('/notice?id='+id)
}
export const addNoticeService = (data) => {
    return request.post('/notice/add', data)
}

export const deleteService = (id) => {
    return request.delete('/notice/'+id)
}

// 通知数据修改
export const updateService = (data) => {
    return request.put('/notice/update', data)
}